<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="java.util.*,com.liuzhou.model.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page import="java.io.*,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>这是显示Session loginMsg 的页面</h1>
	<hr>
	<div>
		<p>out.print(session.getAttribute("loginMsg")):</p>

		<%
			out.print(session.getAttribute("loginMsg"));
		%>
	</div>
	<hr>
	<div>
		<p>c out ,sessionScope.loginMsg</p>

		<c:out	value= "${sessionScope.loginMsg}"		/>
	</div>
	<hr>
	<div>
		<p>c out  request lgoinMsg</p>

		<c:out  value= "${loginMsg}"/>
	</div>
	<hr>
	<div>
	<p>写出在loginMsg为未登录的时候，什么都不显示，出错的时候，显示错误信息
	</p>
	
	<c:if test="${sessionScope.loginMsg != null}">
		<c:out	value= "${sessionScope.loginMsg}"/>
	</c:if>
	</div>
	
</body>
</html>